Integrand size = 23, antiderivative size = 176 \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=-\frac {b x \sqrt {d+e x^2}}{6 c e}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}+\frac {b \sqrt {c^2 d-e} \left (2 c^2 d+e\right ) \arctan \left (\frac {\sqrt {c^2 d-e} x}{\sqrt {d+e x^2}}\right )}{3 c^3 e^2}+\frac {b \left (3 c^2 d+2 e\right ) \text {arctanh}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{6 c^3 e^{3/2}} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.435, Rules used = {272, 45, 5096, 12, 542, 537, 223, 212, 385, 209} \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {b \sqrt {c^2 d-e} \left (2 c^2 d+e\right ) \arctan \left (\frac {x \sqrt {c^2 d-e}}{\sqrt {d+e x^2}}\right )}{3 c^3 e^2}+\frac {b \left (3 c^2 d+2 e\right ) \text {arctanh}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{6 c^3 e^{3/2}}-\frac {b x \sqrt {d+e x^2}}{6 c e} \]
[In]
[Out]
Rule 12
Rule 45
Rule 209
Rule 212
Rule 223
Rule 272
Rule 385
Rule 537
Rule 542
Rule 5096
Rubi steps \begin{align*} \text {integral}& = -\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}-(b c) \int \frac {\left (-2 d+e x^2\right ) \sqrt {d+e x^2}}{3 e^2 \left (1+c^2 x^2\right )} \, dx \\ & = -\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}-\frac {(b c) \int \frac {\left (-2 d+e x^2\right ) \sqrt {d+e x^2}}{1+c^2 x^2} \, dx}{3 e^2} \\ & = -\frac {b x \sqrt {d+e x^2}}{6 c e}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}-\frac {b \int \frac {-d \left (4 c^2 d+e\right )-e \left (3 c^2 d+2 e\right ) x^2}{\left (1+c^2 x^2\right ) \sqrt {d+e x^2}} \, dx}{6 c e^2} \\ & = -\frac {b x \sqrt {d+e x^2}}{6 c e}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}+\frac {\left (b \left (c^2 d-e\right ) \left (2 c^2 d+e\right )\right ) \int \frac {1}{\left (1+c^2 x^2\right ) \sqrt {d+e x^2}} \, dx}{3 c^3 e^2}+\frac {\left (b \left (3 c^2 d+2 e\right )\right ) \int \frac {1}{\sqrt {d+e x^2}} \, dx}{6 c^3 e} \\ & = -\frac {b x \sqrt {d+e x^2}}{6 c e}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}+\frac {\left (b \left (c^2 d-e\right ) \left (2 c^2 d+e\right )\right ) \text {Subst}\left (\int \frac {1}{1-\left (-c^2 d+e\right ) x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{3 c^3 e^2}+\frac {\left (b \left (3 c^2 d+2 e\right )\right ) \text {Subst}\left (\int \frac {1}{1-e x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{6 c^3 e} \\ & = -\frac {b x \sqrt {d+e x^2}}{6 c e}-\frac {d \sqrt {d+e x^2} (a+b \arctan (c x))}{e^2}+\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 e^2}+\frac {b \sqrt {c^2 d-e} \left (2 c^2 d+e\right ) \arctan \left (\frac {\sqrt {c^2 d-e} x}{\sqrt {d+e x^2}}\right )}{3 c^3 e^2}+\frac {b \left (3 c^2 d+2 e\right ) \text {arctanh}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{6 c^3 e^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.43 (sec) , antiderivative size = 377, normalized size of antiderivative = 2.14 \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\frac {-\frac {\sqrt {d+e x^2} \left (b e x+a c \left (4 d-2 e x^2\right )\right )}{c}+2 b \left (-2 d+e x^2\right ) \sqrt {d+e x^2} \arctan (c x)-\frac {i b \left (2 c^4 d^2-c^2 d e-e^2\right ) \log \left (\frac {12 i c^4 e^2 \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} \left (-2 c^4 d^2+c^2 d e+e^2\right ) (i+c x)}\right )}{c^3 \sqrt {c^2 d-e}}+\frac {i b \left (2 c^4 d^2-c^2 d e-e^2\right ) \log \left (-\frac {12 i c^4 e^2 \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} \left (-2 c^4 d^2+c^2 d e+e^2\right ) (-i+c x)}\right )}{c^3 \sqrt {c^2 d-e}}+\frac {b \sqrt {e} \left (3 c^2 d+2 e\right ) \log \left (e x+\sqrt {e} \sqrt {d+e x^2}\right )}{c^3}}{6 e^2} \]
[In]
[Out]
\[\int \frac {x^{3} \left (a +b \arctan \left (c x \right )\right )}{\sqrt {e \,x^{2}+d}}d x\]
[In]
[Out]
none
Time = 0.63 (sec) , antiderivative size = 882, normalized size of antiderivative = 5.01 \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\left [\frac {{\left (3 \, b c^{2} d + 2 \, b e\right )} \sqrt {e} \log \left (-2 \, e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {e} x - d\right ) + {\left (2 \, b c^{2} d + b e\right )} \sqrt {-c^{2} d + e} \log \left (\frac {{\left (c^{4} d^{2} - 8 \, c^{2} d e + 8 \, e^{2}\right )} x^{4} - 2 \, {\left (3 \, c^{2} d^{2} - 4 \, d e\right )} x^{2} + 4 \, {\left ({\left (c^{2} d - 2 \, e\right )} x^{3} - d x\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d} + d^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 2 \, {\left (2 \, a c^{3} e x^{2} - 4 \, a c^{3} d - b c^{2} e x + 2 \, {\left (b c^{3} e x^{2} - 2 \, b c^{3} d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, c^{3} e^{2}}, \frac {2 \, {\left (2 \, b c^{2} d + b e\right )} \sqrt {c^{2} d - e} \arctan \left (\frac {\sqrt {c^{2} d - e} {\left ({\left (c^{2} d - 2 \, e\right )} x^{2} - d\right )} \sqrt {e x^{2} + d}}{2 \, {\left ({\left (c^{2} d e - e^{2}\right )} x^{3} + {\left (c^{2} d^{2} - d e\right )} x\right )}}\right ) + {\left (3 \, b c^{2} d + 2 \, b e\right )} \sqrt {e} \log \left (-2 \, e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {e} x - d\right ) + 2 \, {\left (2 \, a c^{3} e x^{2} - 4 \, a c^{3} d - b c^{2} e x + 2 \, {\left (b c^{3} e x^{2} - 2 \, b c^{3} d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, c^{3} e^{2}}, -\frac {2 \, {\left (3 \, b c^{2} d + 2 \, b e\right )} \sqrt {-e} \arctan \left (\frac {\sqrt {-e} x}{\sqrt {e x^{2} + d}}\right ) - {\left (2 \, b c^{2} d + b e\right )} \sqrt {-c^{2} d + e} \log \left (\frac {{\left (c^{4} d^{2} - 8 \, c^{2} d e + 8 \, e^{2}\right )} x^{4} - 2 \, {\left (3 \, c^{2} d^{2} - 4 \, d e\right )} x^{2} + 4 \, {\left ({\left (c^{2} d - 2 \, e\right )} x^{3} - d x\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d} + d^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) - 2 \, {\left (2 \, a c^{3} e x^{2} - 4 \, a c^{3} d - b c^{2} e x + 2 \, {\left (b c^{3} e x^{2} - 2 \, b c^{3} d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, c^{3} e^{2}}, \frac {{\left (2 \, b c^{2} d + b e\right )} \sqrt {c^{2} d - e} \arctan \left (\frac {\sqrt {c^{2} d - e} {\left ({\left (c^{2} d - 2 \, e\right )} x^{2} - d\right )} \sqrt {e x^{2} + d}}{2 \, {\left ({\left (c^{2} d e - e^{2}\right )} x^{3} + {\left (c^{2} d^{2} - d e\right )} x\right )}}\right ) - {\left (3 \, b c^{2} d + 2 \, b e\right )} \sqrt {-e} \arctan \left (\frac {\sqrt {-e} x}{\sqrt {e x^{2} + d}}\right ) + {\left (2 \, a c^{3} e x^{2} - 4 \, a c^{3} d - b c^{2} e x + 2 \, {\left (b c^{3} e x^{2} - 2 \, b c^{3} d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{6 \, c^{3} e^{2}}\right ] \]
[In]
[Out]
\[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\int \frac {x^{3} \left (a + b \operatorname {atan}{\left (c x \right )}\right )}{\sqrt {d + e x^{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )} x^{3}}{\sqrt {e x^{2} + d}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^3 (a+b \arctan (c x))}{\sqrt {d+e x^2}} \, dx=\int \frac {x^3\,\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}{\sqrt {e\,x^2+d}} \,d x \]
[In]
[Out]